#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :isintance.py
# @Time      :2021/3/1 14:16
# @Author    :Letquit
"""
文件说明：

"""


def add(x, y):
    if isinstance(x, (int, float)) and isinstance(y, (int, float)):
        # x,y只能是int或float
        return x + y
    else:
        print('Error:')


res = add(2.5, 'A')
print(res)

if __name__ == "__main__":
    run_code = 0
